package com.xbongbong.pro.appdetail.pojo;

import com.xbongbong.paas.domain.entity.ext.ConditionsEntityExt;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.util.List;

/**
 * 移动端详情点击可以跳转的区块信息
 *
 * @author GuoJun.HU
 * @date 2019/3/13 18:29
 * @since V1.0
 */
@ToString
@Getter
@Setter
public class MobileDetailDirectBlockPojo {

    private String type;
    private Long id;
    private Integer businessType;
    private String value;
    private Integer distributorMark;
    private Long formId;
    /**
     * 详情页穿透时传必要的查询条件
     */
    private List<ConditionsEntityExt> conditions;
    private Integer saasMark;

    public MobileDetailDirectBlockPojo() {
        this.type = "direct";
    }

    public MobileDetailDirectBlockPojo(Long id, Integer businessType, String value) {
        this.type = "direct";
        this.id = id;
        this.businessType = businessType;
        this.value = value;
    }

    public MobileDetailDirectBlockPojo(Long id, Integer businessType, String value, Integer distributorMark) {
        this.type = "direct";
        this.id = id;
        this.businessType = businessType;
        this.value = value;
        this.distributorMark = distributorMark;
    }

    public MobileDetailDirectBlockPojo(Integer businessType, String value, List<ConditionsEntityExt> conditions, Integer saasMark) {
        this.type = "purchaseThrough";
        this.businessType = businessType;
        this.value = value;
        this.conditions = conditions;
        this.saasMark = saasMark;
    }
    public MobileDetailDirectBlockPojo(Long id, Integer businessType, String value,Long formId) {
        this.type = "direct";
        this.id = id;
        this.businessType = businessType;
        this.value = value;
        this.formId = formId;
    }

}
